package session.stateless;

import entity.LineItem;
import entity.PurchaseOrder;
import java.util.List;
import javax.ejb.Local;

@Local
public interface PurchaseOrderBeanLocal {
    public Long convertToPurchaseOrder(String reg_num, Long saleQuotationId, List<LineItem> lineItems) ;
    
    public Long createDirectPurchaseOrder_SaleLead(String reg_num, List<LineItem> lineItems) ;
    public Long createDirectPurchaseOrder_Customer(String reg_num, List<LineItem> lineItems);
    
    public List<PurchaseOrder> getPurchaseOrders();
    public List<PurchaseOrder> getPurchaseOrdersByCustomer(String reg_num);
    
    public void updatePurchaseOrder(Long PurchaseOrderId, List<LineItem> lineItems);
    public void deletePurchaseOrder(Long purchaseOrderId);
}
